package com.itheima.day1static;

public class User {
    // 这个成员变量只在内存里有一份
    public static int onlineUsers;
    private String name;
    private  int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public  void run(){
        System.out.println("实例run方法");
    }
    public static void swim(){
        System.out.println("静态swim方法");
    }

}
